<?php
use common\components\widgets\Datetimepicker;
Datetimepicker::widget(['timepicker' => 'false','format'=>'Y-m-d']);
Datetimepicker::widget(['timepicker' => 'true','datepicker'=>'false','format'=>'H:i','step'=>'5','flag'=>'datetimepickers']);
?>
<?php $form = \yii\widgets\ActiveForm::begin(['enableAjaxValidation' => true,'enableClientValidation' => false,'options'=>['class'=>'form-validate']]); ?>
<table width="100%" class="table-form">
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['class_date']; ?></th>
        <td><?= $form->field($model, 'class_date', ['template' => '{input}{error}{hint}'])->textInput(['class'=>'datetimepicker input-text','style'=>'width:220px;']) ?></td>
    </tr>
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['lesson']; ?></th>
        <td><?= $form->field($model, 'lesson', ['template' => '{input}{error}{hint}'])->textInput(['class'=>'input-text','style'=>'width:220px;']) ?></td>
    </tr>
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['start_time']; ?></th>
        <td><?= $form->field($model, 'start_time', ['template' => '{input}{error}{hint}'])->textInput(['class'=>'datetimepickers input-text','style'=>'width:220px;']) ?></td>
    </tr>
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['end_time']; ?></th>
        <td><?= $form->field($model, 'end_time', ['template' => '{input}{error}{hint}'])->textInput(['class'=>'datetimepickers input-text','style'=>'width:220px;']) ?></td>
    </tr>
    <tr>
        <th class="zx-goods-table" style="width:30%;"><?= $model->attributeLabels()['remark']; ?></th>
        <td><?= $form->field($model, 'remark', ['template' => '{input}{error}{hint}'])->textarea(['class'=>'input-textarea']) ?></td>
    </tr>

</table>
<div class="m_top_10 btn" style="display: none">
    <?= \yii\helpers\Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
</div>
<?php \yii\widgets\ActiveForm::end(); ?>
